let dayjs = require("dayjs");
let date = dayjs();
let date1 = dayjs("1998-08-21");
const year = date.year();
const year2=date1.year();
const month = date.month();
const day = date.date();
const hour = date.hour();
const minute = date.minute();
const second = date.second();

console.log(year)   //2024
console.log(year2)  //1998
console.log(month) 
console.log(day)
console.log(hour)
console.log(minute)
console.log(second)

